export const message = {

	created() {
		this.hello();
	},
	data() {
		return {
			nums: 5,

		}
	},
	methods: {
		hello() {
			console.log('Hello');
		},
		sendMessage() {
			this.$u.http.post('/app/sms/sendTo', {
				"content": this.content,
				"countryCode": "CN",
				"mobile": this.phoneNumber,
				"remark": "",
				"status": 0
			}).then(res => {
				if (res.code == 0) {
					uni.showToast({
						title: '短信发送成功',
						icon: 'success'
					});

				}
			})

		},
		acceptTo() {

			this.$u.http.post('/app/sms/acceptTo', {
				"phone": this.phoneNumber,
				"password": this.passwd,
				"newpassword": this.newpasswd,
				"code": this.code,
				"type": this.type
			}).then(res => {
				if (res.code == 0) {

					if (this.type == 0) {
						vm.$u.route('/pages/user/login/login')
					}



				}
			})
		}
	},

}
